#include <iostream>
#include <iomanip>
#include <bitset>
#include <string>

#include "Head.h"
//using std::iostream;
//#include <iostream.h>
using namespace std;

int main()
{
	//printf("This is a C++ program\n");
	//std::cout << "This is a C++ program\n";

	//cout << "Enter your name and age:\n";
	//char name[20];
	//int age;
	//cin >> name;
	//cin >> age;

	//cout << endl << "Your name is :" << setw(10) << name << endl << "Your age is :" << setw(10) << age << endl;

	////Head vhead;
	////Head *phead = new Head;
	//Head *phead = (Head *)malloc(sizeof(Head));
	//float i = 3.25, j = 1.25, k = 9.25;
	//float m = phead->max(i, j);
	////float m = vhead.max(i, j, k);   
	////float m = Head::max(i, j, k);
	//cout << m <<endl;
	////cout << sizeof(int) << endl << sizeof(long) << endl;
	//delete phead;

	//stu stu1(100, "lili", 'f');
	//stu1.display();

	//stu stu2;
	//stu2.display();

	//student student1(121, "lucy", 'f', 18, "Tian shang ren jian.");
	//student1.show();
	//student1.display();
	//student1.age = 20;

	bitset<27> val_bitset;
	for(size_t i = 0; i < val_bitset.size(); ++i)
	{
		if(i%2 == 0)
		val_bitset.set(i);
	}

	string str;
	val_bitset.flip();
	str = val_bitset.to_string();
	cout << str << endl;

	bitset <9> val_bitset2(str, 5, 5);
	cout << val_bitset2 << endl;
	
 
	return 0;
}